package com.jshcbd.modules.asset.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zhoucd
 * @date
 * @description
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel( description = "资产归还信息")
public class RetrocedeDto implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id;


    @ApiModelProperty(value = "归还公司ID",required=true)
    @NotNull
    private String companyId;

    @ApiModelProperty(value = "归还人",required=true)
    @NotNull
    private String returner;

    @ApiModelProperty(value = "联系电话",required=true)
    private String telphone;


    @ApiModelProperty(value = "归还时间",required=true)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull
    private Date returnDate;

    @ApiModelProperty(value = "资产照片",required=true)
    private String  photo;

    @ApiModelProperty(value = "是否损坏",required=true)
    private Boolean  isDamage;

    @ApiModelProperty(value = "备注")
    private String  note;


    @ApiModelProperty(value = "资产id")
    @NotNull
    private String[]  assetIds;

}
